package com.utils;

import lombok.Data;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

@Configuration
@Data
@Component
public class AlipayConfig {

    /**
     * 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
     */
    private String appId = "2021000148650320";

    /**
     * 商户私钥，您的PKCS8格式RSA2私钥
     */
    private String privateKey = "MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCo9dlKZe/uI2lq+Sk5GXP2PLLKU3mJwz5pPBindCkYES7Mj43gKDCYHO7WGHPgVwId6moJ+vGRqbfhW4c/+v0d/QENtzZC/sNf1rEeBZcMxfkdcXMrilUqNbJgf/CixdbhiE0gVBiwdu8aU7eLH2+0FhlrLsQXHSwyVi6duG0v0Z4LzHjl2caITDoNM24pm27YsREfh1/1ate6uvbM4f4HNoToJjKes0R7G9WXmM0fOXPvT/3kvdudxZAUxlvIsKq7Rg6DwoF3MgP+iHKMFcPRx6WOlG9o/KVLU2RlFrjWOzipmv/60hp7Ex+S0B/0Tg2W/pGbewdWaD3uWR5ozQBdAgMBAAECggEAD5jygD280n0OZEOwHIdO/zJHRwpBtAgEIO7dT8gXaxNbAKNX85OCOOii27zSJamilmRneZhi6JGEWhd6+tsOts/+YufA6JpgKt7E5wKZGSLFhoRMn35bslPWrbXh3wToe1V72ToqNVAlboa/8OXsB/HqUsy0aXXV+KegEgtOeRV4C74/xzVwG+YS5qVMWNgiXRdGp7lYDhBvAN1zI9Kj55HNpfclKgvCzIjh7Gxn1g2+OcE+uhXm6fHikecQTCj+Sq8r3LdlDt5Ud0I+oeJqxBh+S9XtQKWFrE0SiAwAw7YOHTwb6kqnWb4SgrLRKVJSBggo7eEnI7yN3ql4Fqo0eQKBgQDslfNyjTLs2UM1q1s/5lT2lrPYVsa8Le2gR5UByFJkQdl+fbM+4OEW9oHnkq4hrKU12gwnaJ1te1NlJw8mvSGBE0Hsb/JP2jPHYTXMCJBhs8Rx+hvi6H5ZdNmGtOLGeyvTwHmhn+LPt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ivnMdYJq1bBt2+N8Czs3Ohvc3YC2BfKMKNO66rM99L7qJYN1vZ65o0keiQ2pUjGAyJegbmVEwIDAQAB";

    /**
     * TODO:服务器异步通知页面路径需http://格式的完整路径，不能加?id=123这类自定义参数
     */
    private String notifyUrl = "http://m22f785e.natappfree.cc/shopNest/alipay/notifyUrl";

    /**
     * TODO:页面跳转同步通知页面路径 需http://格式的完整路径.
     * 支付完成后返回的地址
     */
    private String returnUrl = "http://m22f785e.natappfree.cc/shopNest/front/index.html";

    /**
     * 签名方式
     */
    private String signType = "RSA2";

    /**
     * 字符编码格式
     */
    private String charset = "utf-8";

    /**
     * 支付宝网关
     */
    private String gatewayUrl = "https://openapi-sandbox.dl.alipaydev.com/gateway.do";
}